package com.simple.weather.demo.service.Impl;

import com.simple.weather.demo.service.WeatherDataService;
import com.simple.weather.demo.service.WeatherReportService;
import com.simple.weather.demo.vo.WeatherResponseVO;
import com.simple.weather.demo.vo.WeatherVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WeatherReportServiceImpl implements WeatherReportService {

    @Autowired
    private WeatherDataService weatherDataService;

    @Override
    public WeatherVO getDataByCityId(String cityId) {
        WeatherResponseVO responseVO = weatherDataService.getDataByCityId(cityId);

        return responseVO.getData();
    }
}
